/**
 * @file model_config.h
 *
 * Copyright (c) Huawei Technologies Co., Ltd. 2023. All rights reserved.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */

#ifndef ACL_MODEL_CONFIG_API_H_
#define ACL_MODEL_CONFIG_API_H_
#include <stdbool.h>
#include "acl/acl_mdl.h"
#include "runtime/mem.h"
#define ACL_MDL_LOAD_TYPE_SIZET_BIT (0x1 << ACL_MDL_LOAD_TYPE_SIZET)
#define ACL_MDL_PATH_PTR_BIT        (0x1 << ACL_MDL_PATH_PTR)
#define ACL_MDL_MEM_ADDR_PTR_BIT    (0x1 << ACL_MDL_MEM_ADDR_PTR)
#define ACL_MDL_MEM_SIZET_BIT       (0x1 << ACL_MDL_MEM_SIZET)

bool CheckMdlConfigHandle(const aclmdlConfigHandle *const handle);
aclError GetMemTypeFromPolicy(aclrtMemMallocPolicy policy, rtMemType_t *type);
#endif // ACL_MODEL_CONFIG_API_H_
